package com.lwc.mapper;

import com.lwc.bean.User;
import com.lwc.bean.newUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    int save(newUser newuser);



    User query(@Param(value = "username") String username, @Param(value = "password") String password);
    int uodatepassword(@Param(value = "id") int id,@Param(value = "password") String password);

    int updatelastLonginTime(int id);

    /**
     * 判断是否有重复的账号密码
     * @param username
     * @param password
     * @return
     */
    int selectByAccount(@Param(value = "username") String username,@Param(value = "password") String password);

}
